{% extends "base.html" %}
{% block title %}Change Password{% endblock %}
{% block userinfo %}
	<p id="user-info">
	    <strong>{{ user.user_nickname }}</strong>, Welcome to Tuna Crew<br/>
	    <a href="/change_pwd/">Change Password</a><br/>
	    <a href="/logout/">Logout</a>
	</p>    
{% endblock %}
{% block menu_home %}id="current"{% endblock %}
{% block contentwrap_id%}-noside{% endblock %}
{% block content %}
		<div id="main-noside">
			<h2><a href="/change_pwd/">Change your password.</a></h2><br/>
				<div class="block">
	                <form class="login" id="id_changeform">
	                    <table id="id_table">
	                       {% if error_msg %}
	                       <tr>
	                           <td colspan="2" class="error" id="error_td">{{ error_msg }}</td>
	                       </tr>
	                       {% endif %}
	                        <tr>
	                            <td class="login"><label for="id_user_passwd">Password: </label></td>
	                            <td><input type="password" name="user_passwd" class="text" id="id_user_passwd" /></td>
	                        </tr>
	                        <tr>
                                <td><label for="id_new_passwd">New password: </label></td>
                                <td><input type="password" name="new_passwd" class="text" id="id_new_passwd" /></td>
                            </tr>
                            <tr>
                                <td><label for="id_new_passwd_cfm">Re new password: </label></td>
                                <td><input type="password" name="new_passwd_cfm" class="text" id="id_new_passwd_cfm" /></td>
                            </tr>
	                        <tr>
	                            <td colspan="2" align="right"><input class="button" type="button" value="OK" onclick="ajaxChangePwd(); return false;" /></td>
	                        </tr>
	                    </table>
	                </form>
	            </div>
		<!-- main ends -->	
		</div>
{% endblock %}